package ai.people.core.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashSet;
import java.util.Set;

/**
 * 安全配置
 *
 * @author yuanqinglong
 * @date 2022/2/15 15:31
 */
@Data
@ConfigurationProperties(prefix = "cloud.request")
public class CloudSecurityProperties {

    /**
     * 是否只能通过网关获取资源
     * 默认为True
     */
    private Boolean onlyFetchByGateway = Boolean.TRUE;

    /**
     * 白名单
     */
    private Set<Whitelist> whitelist = new HashSet<>();


}
